<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2018/3/28
  Time: 10:01
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>收集参数的表单页</title>
    <script>
        function regist()
        {
            targetForm=document.forms[0];
            targetForm.action="loginregistaction!regist"
        }
    </script>
</head>
<body>
<form id="form1" method="post" action="loginregistaction!">
    用户名：<br/>
    <input type="text" name="username"><hr/>
    密码：<br/>
    <input type="password" name="password"><hr/>
    性别：<br/>
    男：<input type="radio" name="gender" value="男">
    女：<input type="radio" name="gender" value="女">
    <br/>
    喜欢的颜色：<br/>
    红：<input type="checkbox" name="color" value="红">
    绿：<input type="checkbox" name="color" value="绿">
    蓝：<input type="checkbox" name="color" value="蓝">
    <br/>
    来自的国家：<br/>
    <select name="national">
        <option value="中国">中国</option>
        <option value="美国">美国</option>
        <option value="俄罗斯">俄罗斯</option>
    </select><hr/>
    <input type="submit" value="注册" onclick="regist();">
    <input type="submit" value="提交">
    <input type="reset" value="重置">

</form>
</body>
</html>
